temp = {{ class_name }}.compute_{{ method_index }}(features);
for (int i = 0; i < nClasses; i++) {
    probas[i] += temp[i];
}